			<div class="charge">
				<ul class="headContent">
					<!-- 	<li style="margin-top: 14px;margin-left:24px;">
							<div>
								<span>姓名</span>
								<input id="customerIds" name="customer.ids"  type="hidden"  value="${customer.ids !}">
								<input id="customerRegisttime"  name="customer.registtime"  type="hidden"  value="${customer.registtime!}">
							    <input id="customerName" name="customer.name"  class="easyui-textbox theme-textbox-radius" style="width:120px;height:32px;text-align:center" value="${customer.name !}" 
							    data-options="
							    iconWidth: 22,
							    icons: [{iconCls:'icon-cancel',
							    handler: clear
							    }]">
							</div>
						</li> -->
						<li style="margin-top: 14px;margin-left:24px;">
							<div>
								<span>姓名</span> 
								<input id="customerIds" name="customer.ids"  type="hidden"  value="${customer.ids !}">
								<input id="customerRegisttime"  name="customer.registtime"  type="hidden"  value="${customer.registtime!}">
								<input class="easyui-combobox" name="language" style="width:120px;height:32px;"  id="customerName" name="customer.name"  value="${customer.name !}"  
							data-options="
							url:'bentryRegister/getCusInfo',
							method:'post',
							valueField:'name',
							textField:'name'
							">
							</div>
						</li>
						<li style="margin-left: 30px;">
							<div>
								<span>手机号</span>
							<input class="easyui-combobox" name="language" style="width:120px;height:32px;"  id="customerPhone" name="customer.phone"  value="${customer.phone !}"  
							data-options="
							url:'bentryRegister/getCusInfo',
							method:'post',
							valueField:'phone',
							textField:'phone'
							">
							</div>
						</li>
						<li style="margin-left: 30px;">
							<div>
								<span>会员编号</span>
								
								<input class="easyui-combobox" name="language" style="width:120px;height:32px;"  id="customerHybh" name="customer.hybh"  value="${customer.hybh !}"  
							data-options="
							url:'bentryRegister/getCusInfo',
							method:'post',
							valueField:'hybh',
							textField:'hybh'
							">
							   
							</div>
						</li>
						<li style="margin-left: 0px;">
							<div>
								<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search'" style="width:80px" id="search" onclick="searchCus()">搜索</a>
								<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-clear'" style="width:80px"  onclick="clearsj()">清除</a>
							</div>
						</li>
						
					</ul>
			</div>	
		<script type="text/javascript">
		function  clearsj(){
			parent.window.nodeClick("正在服务", "/beingServed");
			
		}
			function  searchCus(){
				
				var hybh=$('#customerHybh').val();
				var name=$('#customerName').val();
				var phone=$('#customerPhone').val();
				var url='/bentryRegister/getCusByHybh';
				var data={"hybh":hybh,"name":name,"phone":phone};
				var reData = common_ajax.ajaxFunc(url,data,"json");
				if(reData.msg==200){
					$("#customerIds").val(reData.customer.ids);
					$("#customerName").textbox('setValue',reData.customer.name);
					$("#customerPhone").textbox('setValue',reData.customer.phone);
					$("#customerHybh").textbox('setValue',reData.customer.hybh);
					
					
					
					
					
					var url= "${cxt!}/beingServed/view";
					var data={"hybh":hybh,"name":name,"phone":phone};
					var resultMap = common_ajax.ajaxFunc(url,data,"json");
					if(resultMap !=null && resultMap != ""){
						
						if(resultMap!=null){
							var table =
							'<table   id="mbtable" border="1"  bordercolor="#DDDDDD" style="width:100%;height:85%; text-align: center;font-size: 15px;">'
							+'<tr style="font-weight: bold;">'
							+'<td rowspan="2"  style="width:3%;">序号</td>'
							+'<td rowspan="2" style="width:7%;height: 30px;">名字</td>'
							+'<td rowspan="2" style="width:7%;height: 30px;">到店时间</td>'
							+'<td rowspan="2" style="width:5%;">体重</td>'
							+'<td rowspan="2" style="width:3%;">药贴</td>'
							+'<td colspan="3">减重情况</td>'
							+'<td rowspan="2">手法</td>'
							+'<td colspan="4">精护部位</td>'
							+'<td rowspan="2">备注</td>'
							+'<td rowspan="2" style="width:8%;">操作</td>'
							+'</tr>'
							+'<tr >'
							+'<td >涨称</td>'
							+'<td>掉称</td>'
							+'<td >平称</td>'
							+'<td >腰部</td>'
							+'<td >大腿</td>'
							+'<td >小腿</td>'
							+'<td >胳膊</td>'
							+'</tr>'
							+'</table>';
							$("#mbtablediv").html(table);
							$.each(resultMap, function(index, content){ 
								var	newRow=
									
									
									
								 '<tr>'
								+'<td >'+index+'</td>'
								+'<td>'+content.cname+'</td>'
								+'<td >'+content.starttime+'</td>'
								+'<td >'+content.weight+'</td>'
								<%if(content.weight!=null){%>
								<td   style="width:30px;height: 30px;">
								<input id="${content.customerid}yt"   class="easyui-numberspinner inputBox theme-textbox-radius"  required="true" value="1" data-options="increment:1,min:0,max:3,align:'center'"   style="width:50px;height: 30px;margin: 0px;padding: 0px; text-align: center;"  >
								</td>
								
								
								<%if(content.weight-content.lastWeight>0){%>
									<td style="border: 3px solid red;" >${content.weight-content.lastWeight}</td>
									<td ></td>
									<td ></td>
								<%}else if(content.lastWeight-content.weight>0){%>
									<td  ></td>
									<td style="border: 3px solid green;">${content.lastWeight-content.weight}</td>
									<td ></td>
								<%}else if(content.lastWeight-content.weight==0){%>
									<td ></td>
									<td ></td>
									<td style="border: 3px solid yellow;">0</td>
								<%}%>
								<td  style="width:8%;height: 30px;" id="${content.customerid}sftd">
								<%if(content.sfname!=null){%>
										${content.sfname}
								<%}else{%>
								<input class="easyui-validatebox"  type="password" value="${temporary.height !}"  id="${content.customerid}sf" style="width: 50%;height: 30px;margin: 0px;padding: 0px;border-radius:3px;  border: 1px solid #ff7e00; "  >
								<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" style="width: 40%;height: 30px;" onclick="savesfInfo('${content.customerid}','sf','${content.sid}')"></a>
								<%}%>
								</td>
								<%}else{%>
									<td ></td>
									<td ></td>
									<td ></td>
									<td ></td>
									<td ></td>
								<%}%>
								
								
								
								
								
								<td  style="width:8%;height: 30px;" id="${content.customerid}ybtd">
								<%if(content.ybname!=null){%>
										${content.ybname}
								<%}else{%>
								<input class="easyui-validatebox"  type="password" value="${temporary.height !}" id="${content.customerid}yb"   style="width: 50%;height: 30px;margin: 0px;padding: 0px;border-radius:3px;  border: 1px solid #ff7e00; "  >
								<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" style="width: 40%;height: 30px;" onclick="savesfInfo('${content.customerid}','yb','${content.sid}')"></a>
								<%}%>
								</td>
								
								<td  style="width:8%;height: 30px;" id="${content.customerid}dttd">
								<%if(content.daname!=null){%>
										${content.daname}
								<%}else{%>
								<input class="easyui-validatebox"  type="password" value="${temporary.height !}"  id="${content.customerid}dt" style="width: 50%;height: 30px;margin: 0px;padding: 0px;border-radius:3px;  border: 1px solid #ff7e00; "  >
								<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" style="width: 40%;height: 30px;" onclick="savesfInfo('${content.customerid}','dt','${content.sid}')"></a>
								<%}%>
								</td>
								<td  style="width:8%;height: 30px;" id="${content.customerid}xttd">
								<%if(content.xtname!=null){%>
										${content.xtname}
								<%}else{%>
								<input class="easyui-validatebox"  type="password" value="${temporary.height !}"  id="${content.customerid}xt"  style="width: 50%;height: 30px;margin: 0px;padding: 0px;border-radius:3px;  border: 1px solid #ff7e00; "  >
								<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" style="width: 40%;height: 30px;" onclick="savesfInfo('${content.customerid}','xt','${content.sid}')" ></a>
								<%}%>
								</td>
								<td  style="width:8%;height: 30px;" id="${content.customerid}gbtd">
								<%if(content.gbname!=null){%>
										${content.gbname}
								<%}else{%>
								<input class="easyui-validatebox"  type="password" value="${temporary.height !}"   id="${content.customerid}gb" style="width: 50%;height: 30px;margin: 0px;padding: 0px;border-radius:3px;  border: 1px solid #ff7e00; "  >
								<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" style="width: 40%;height: 30px;" onclick="savesfInfo('${content.customerid}','gb','${content.sid}')" ></a>
								<%}%>
								</td>
								<td > </td>
								<td >
								<a href="#" class="easyui-linkbutton"  style="width:80%;height: 30px;font-weight: bold;border: 1px solid #9acd00;" onclick="deleterow('${content.customerid}','${content.sid}')">服务结束</a>
								</td>
								</tr>
									
									
									
									
									
									
									
									
									
									
									
									'<tr style="width:100%;height: 40px;">'
										+'<td >'+content.targetname+'</td>'
										+'<td >'+content.starttime+'</td>'
										+'<td >'+content.endtime+'</td>'
										+'<td >'+content.startwei+'</td>'
										+'<td >'+content.targetwei+'</td>'
										+'<td >'+content.delwei+'</td>'
										+'<td >'+content.sjweight+'</td>'
										+'<td >'+content.bfb+'%</td>'
										+'</tr>';
									$('#mbtable').append(newRow); 
							  });
						}else{
							$("#mbtablediv").html("");
						}
					}
					
					
					
					
					
					
					
					
				}else
				{
					$.alert(parent.$, reData.msg);
				}
				return  reData;
			}
			
		</script>
				
					